package com.voe.common;

public enum AecmModes {

	/** Quiet earpiece or headset use
	 */
	kAecmQuietEarpieceOrHeadset(0),
	/** most earpiece use
	 */
	kAecmEarpiece(1),
	/** Loud earpiece or quiet speakerphone use
	 */
	kAecmLoudEarpiece(2),
	/** most speakerphone use (default)
	 */
	kAecmSpeakerphone(3),
	/** Loud speakerphone
	 */
	kAecmLoudSpeakerphone(4);

	public static AecmModes fromValue(int value) {
		for (int i=0;i<AecmModes.values().length;i++) {
			if(AecmModes.values()[i].getValue() == value)
				return AecmModes.values()[i];
		}
		return null;
	}

	/**
	 * Constructor.
	 */
	private AecmModes(int value) {
		this.value = value;
	}

	/**
	 * Get the value.
	 * 
	 * @return the value
	 */
	public int getValue() {
		return value;
	}

	private final int value;
}
